package io.lkt.modules.sys.nopassword;

import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * @version : V1.0
 * @ClassName: NoPwdToken
 * @Description: TODO
 * @Auther: chujiu
 * @Date: 2021/1/4 11:18
 */
public class NoPwdToken extends UsernamePasswordToken {

    public NoPwdToken(String username) {
        this.username = username;
    }

    private String username;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Override
    public Object getCredentials() {
        // 这里和下方的 免密验证密码 对应，也可以别的，一致即可。
        return NoPwdUtils.UNIVERSAL_PASSWORD;
    }
}
